﻿//-----------------------------------------------------------------------
// <copyright file="RolesCombboxDataList.cs" company="O-RID">
//     Copyright (c)2010 O-RID Co.,Ltd.
// </copyright>
// <author>Zhang Jun</author>
// <summary>
//          服务的数据传输项
//          数据库中现有的所有权限
//          作成日：05/21/2010
//                  09/07/2010 增加 Condition字段，为AllRolesList()方法用。
//                             增加 oldRoleName字段,为更新数据时，记录旧的字段内容。
// </summary>
//-----------------------------------------------------------------------
namespace Orid.Management.Statistics.Service.OPUnitService.Account.ServiceModel
{
    using System.Runtime.Serialization;

    #region 现有的所有权限
    /// <summary>
    /// RolesCombboxDataList类
    /// [Roles]的所有权限
    /// Combbox数据源专用
    /// </summary>
    [DataContract]
    public class RolesCombboxDataList
    {
        /// <summary>
        /// _roleID
        /// 权限ID
        /// </summary>
        string _roleID = string.Empty;

        /// <summary>
        /// _roleName
        /// 权限名称
        /// </summary>
        string _roleName = string.Empty;

        /// <summary>
        /// _oldRoleName
        /// 记录权限名称，为更新的条件
        /// </summary>
        string _oldRoleName = string.Empty;

        /// <summary>
        /// 所拥有的权限
        /// </summary>
        string _condition = string.Empty;
       
        /// <summary>
        /// Gets or sets the name of the RoleID
        /// 权限ID
        /// </summary>
        [DataMember]
        public string RoleID
        {
            get { return this._roleID; }
            set { this._roleID = value; }
        }
       
        /// <summary>
        /// Gets or sets the name of the RoleName
        /// 权限名称
        /// </summary>
        [DataMember]
        public string RoleName
        {
            get { return this._roleName; }
            set { this._roleName = value; }
        }

        /// <summary>
        /// 所拥有的权限
        /// </summary>
        [DataMember]
        public string Condition
        {
            get { return _condition; }
            set { _condition = value; }
        }

        /// <summary>
        /// 记录权限名称，为更新的条件
        /// </summary>
        [DataMember]
        public string OldRoleName
        {
            get { return _oldRoleName; }
            set { _oldRoleName = value; }
        }


    }
    #endregion 现有的所有权限用
}
